/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: 'noRedirect',
  name: 'System',
  meta: {
    title: '系统管理',
    icon: 'guide',
    roles: ['admin']
  },
  alwaysShow: true,
  children: [
    {
      path: 'admin',
      component: () => import('@/views/system/Admin'),
      name: 'SystemAdmin',
      meta: { title: '管理员', noCache: true, roles: ['admin'] }
    },
    {
      path: 'roles',
      component: () => import('@/views/system/Role'),
      name: 'SystemRoles',
      meta: { title: '角色权限', noCache: true, roles: ['admin'] }
    }
  ]
}

export default systemRouter
